<template>
  <div>
    子组件收到的数据是{{ num }}
  </div>
</template>
<script>
export default {
  props: { num: { type: Number, required: true }}
}
</script>
